<?php
$ms = "Presses";
include "header.php";
?>
<div class="cornerAll">
	<ul class="breadcrumb">
		<li><a href="index.php" class="fist_link">Home</a></li>
		<li><a href="presses.php">Orders</a></li>
	</ul>
	<div class="left">
		<div style="padding-bottom:15px">Open | <a href="offers-awaiting.php">Pending</a> | <a href="offers-infull.php">Dispatched</a></div>
		<table>
			<thead>
				<tr>
					<th>Customer</th>
					<th>Items</th>
					<th>Shipping to</th>
					<th>Price</th>
					<th></th>
				</tr>
			</thead>
			<tbody>
				<?php drawRows();?>
			</tbody>
		</table>	
	<?php 
	include "page-numbers.php";
	?>			
	</div>
	<div class="right">
		<?php 
		$search = new Form();
		$search->addField("text","Order number");
		$search->addField("text","Name");
		$search->addField("text","Email address");
		$search->button("Search");
		$search->draw();
		?>
	</div>
	<div class="clear"></div>
</div>
<?php  
function drawRows(){
	for($i = 0; $i < 10; $i++){
	?>
		<tr>
			<td><a href="contact.php">John Jenkins</a></td>
			<td>4</td>
			<td>Shipping to</td>
			<td>Price</td>
			<td><a href="order.php">View</a></td>
		</tr>
	<?php 
	}
}
include "footer.php";
?>